import requests


def login_session(user,password):
    s = requests.Session()
    rs = s.post('http://127.0.0.1/api/mgr/signin',data={
        'username':user,
        'password':password
    })
    return (s,rs)

req,resp = login_session('byhy','88888888')
print(resp.cookies)